/**
 * A*寻路节点
 */
export class AstarNode {
	public x:number;    //列
	public y:number;    //行
	//public f:number;    //代价 f = g+h
	public g:number;    //起点到当前点代价
	public h:number;    //当前点到终点估计代价
	public f:number;
	public walkable:boolean = true;
	public hasUnit:boolean = false;
	public parent:AstarNode;
	public costMultiplier:number = 1.0;
	public position:cc.Vec2
	public isInOpen = false;
	public isInClose = false;
	public constructor(x:number , y:number) {
		this.x = x;
		this.y = y;
		this.position = cc.v2(x,y);
	}
}